/**
 *
 * 初始化请求参数
 *
 */
package com.ilovetolearn.vo
{
	import com.adobe.cairngorm.vo.IValueObject;

	public class InitializeVo implements IValueObject
	{
		private var _ac:String="flashapi";
		private var _courseid:String; //课程id
		private var _uid:String; //用户id
		private var _operate:String; //对应do参数
		private var _type:String;

		public function InitializeVo()
		{
		}

		public function get ac():String
		{
			return _ac;
		}

		public function set ac(value:String):void
		{
			_ac=value;
		}

		public function get operate():String
		{
			return _operate;
		}

		public function set operate(value:String):void
		{
			_operate=value;
		}

		public function get type():String
		{
			return _type;
		}

		public function set type(value:String):void
		{
			_type=value;
		}

		public function get uid():String
		{
			return _uid;
		}

		public function set uid(value:String):void
		{
			_uid=value;
		}

		public function get courseid():String
		{
			return _courseid;
		}

		public function set courseid(value:String):void
		{
			_courseid=value;
		}

		public function toParamString():String
		{
			var temp:String="?";
			if (ac != null && ac != "")
			{
				temp+="ac=" + ac;
			}
			if (operate != null && operate != "")
			{
				temp+="&do=" + operate;
			}
			if (type != null && type != "")
			{
				temp+="&type=" + type;
			}
			if (courseid != null && courseid != "")
			{
				temp+="&courseid=" + courseid;
			}
			if (uid != null && uid != "")
			{
				temp+="&uid=" + uid;
			}
			return temp;
		}

	}
}